package zwp.example.demo1.demo_abstract;

import zwp.example.demo1.demo_pojo.enumdemo.DemoEnum;

/**
 * @author zwp14
 */
public abstract class DemoEnumAbstract {

    /**
     * 获取工单类型
     *
     * @return {@link DemoEnum} 获取异常工单类型
     */
    public abstract DemoEnum getOrderType();

    public String test() {
        //第三步：方法的具体实现，由getOrderType方法的具体实现决定
        String orderTypeName = this.getOrderType().getOrderTypeName();
        String subOrderTypeName = this.getOrderType().getSubOrderTypeName();
        String subOrderType = this.getOrderType().getSubOrderType();
        String orderType = this.getOrderType().getOrderType();
        return orderTypeName + "," + subOrderTypeName + "," + subOrderType + "," + orderType;
    }


}
